package com.nbufe.observer.demo2;

/**
 * @Author Zan
 * @Create 2024/5/29 14:00
 * @ClassName: CampusNet
 * @Description : TODO 请用一句话描述该类的功能
 */
public class CampusNet implements Observer {

    private String name;

    public CampusNet(String name) {
        this.name = name;
    }

    @Override
    public void getMessage(String msg) {
        System.out.println(name + "获得了天气消息：" + msg);
    }
}
